1287dfdd0c07f27165535a90eb18413630276d91,basex-core/src/main/java/org/basex/core/cmd/Restore.java,Restore,restore,#String#IOFile#Restore#Context#,104
Before Change
final Zip zip = new Zip(file);
if(cmd != null) cmd.proc(zip);
zip.unzip(context.globalopts.dbpath());
}
@Override
After Change
// drop target database
DropDB.drop(db, context);
final IOFile dbpath = context.globalopts.dbpath();
final Zip zip = new Zip(new IOFile(dbpath, backup + IO.ZIPSUFFIX));
if(cmd != null) cmd.proc(zip);
zip.unzip(dbpath);
}